package com.jindreamit.m3u8.download.jwt;

import org.jsoup.Connection;
import org.jsoup.Jsoup;

public class LoginForJWT {
    static String JWT = null;

    static public String getJWT() throws Exception {
        if (JWT != null)
            return JWT;
        else
            JWT = Jsoup.connect("http://sxtx.szqnkf.com/api/userLogin.php")
                    .method(Connection.Method.POST)
                    .data("mobile", "15989558289")
                    .data("pwd", "2A9F2113EBFDF16E7ED15FCCE8309FE9")
                    .data("cid", "3")
                    .execute()
                    .headers()
                    .get("jwt");
        return JWT;
    }
}
